﻿using Microsoft.AspNetCore.Components;

namespace MG.Library.Services;

public class NavigationService : INavigaitionService 
{
    private readonly NavigationManager _navigationManager;

    public NavigationService(NavigationManager navigationManager)
    {
        _navigationManager = navigationManager;
    }

    public void NavigateTo(string url) => _navigationManager.NavigateTo(url);
    public void NavigateTo(string url, object parameter)
    {
        throw new NotImplementedException();
    }
}